<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>文件管理</title>


<link href="${base}/resources/admin/css/amazeui.css" rel="stylesheet" type="text/css" />
<link href="${base}/resources/admin/css/common.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="${base}/resources/admin/js/jquery.js"></script>
<script type="text/javascript" src="${base}/resources/admin/js/common.js"></script>
<script type="text/javascript" src="${base}/resources/admin/js/list.js"></script>
<script type="text/javascript" src="${base}/resources/admin/js/amazeui.min.js"></script>
<script type="text/javascript">
$().ready(function() {

	[@flash_message /]

});
</script>
	<style type="text/css">
		.imageSize{
			width: 40px;
            height:40px;
		}
		.back{
			color: #565656;
		}
		.addIcon{
            background:none!important;
            top: 0!important;
		}
	</style>
</head>
<body>
	<div class="path">
		<a href="${base}/asl-admin/common/index.htm">${message("admin.path.index")}</a> &raquo; 文件管理 >
	</div>
	<form id="listForm" action="list.htm" method="get">
		<div class="bar">
			[#if path!=null]
			<a href="javascript:history.back(-1);" class="iconButton">
				<i class="addIcon iconfont icon-shiliangzhinengduixiang4 back"></i> 上一级
			</a>
			[/#if]
			<div class="buttonWrap">
                <a href="javascript:" id="deleteButton" class="iconButton disabled">
                    <i class="iconfont icon-icon27">&nbsp;</i>${message("admin.common.delete")}
                </a>
                <a href="javascript:" id="refreshButton" class="iconButton">
                    <i class="iconfont icon-shuaxin1">&nbsp;</i>${message("admin.common.refresh")}
                </a>
			</div>
			<div class="menuWrap">
				<div class="search">
					<span id="searchPropertySelect" class="arrow">&nbsp;</span>
					<input type="text" id="searchValue" name="searchValue" value="${searchValue}" maxlength="200" />
					<button type="submit">&nbsp;</button>
				</div>
				<div class="popupMenu">
					<ul id="searchPropertyOption">
						<li>
							<a href="javascript:"[#if searchProperty == "title"] class="current"[/#if] val="title">${message("Ad.title")}</a>
						</li>
					</ul>
				</div>
			</div>
		</div>
		<table id="listTable" class="list">
			<tr>
				<th class="check">
					<input type="checkbox" id="selectAll" />
				</th>
				<th>
					<a href="javascript:" class="sort" name="name">文件名</a>
				</th>
				<th>
					<a href="javascript:" class="sort" name="size">文件大小</a>
				</th>
                <th>
                    <a href="javascript:" >图片</a>
                </th>
                <th>
                    <a href="javascript:" class="sort" name="lastModified">最后修改日期</a>
                </th>
			</tr>
			[#list fileInfos as fileInfo]
				<tr>
					<td>
						<input type="checkbox" name="ids" value="${path}/${fileInfo.name}" />
					</td>
					<td>
						[#if fileInfo.isDirectory]<a href="list.htm?path=${path}/${fileInfo.name}"><i class="iconfont icon-wenjianjia2"></i> ${fileInfo.chinese}</a>[#else]<i class="iconfont icon-iconfonttupian24px"></i> ${fileInfo.chinese}[/#if]
					</td>
					<td>
						${fileInfo.size/1000}KB
					</td>
                    <td>
                        [#if fileInfo.isDirectory]<i class="iconfont icon-wenjianjia2"></i>[#else]<img class="imageSize" src="${fileInfo.url}" alt=""/>[/#if]
                    </td>
					<td>
						${fileInfo.lastModified?string("yyyy-MM-dd HH:mm:ss")}
					</td>
				</tr>
			[/#list]
		</table>
	</form>
</body>
</html>